{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<div class="main">
<div class="main_title">{%EDIT_TAGGROUP} <a href="{:u("TagGroup/index")}" class="back_list">{%BACK_LIST}</a></div>
<div class="blank5"></div>
<form name="edit" id="form" action="__APP__" method="post" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="form">
	<tr>
		<td colspan=2 class="topTd"></td>
	</tr>
	<tr>
		<td class="item_title">{%NAME}</td>
		<td class="item_input"><input type="text" class="textbox require" name="name" id="name" value="{$vo.name}"/></td>
	</tr>
	<tr>
			<td class="item_title">备注</td>
			<td class="item_input"><input type="text" class="textbox" name="memo" id="memo" value="{$vo.memo}" /></td>
	</tr>
	<tr>
			<td class="item_title">允许用户点评</td>
			<td class="item_input">
				<select name="allow_dp">
					<option value="1" <if condition="$vo['allow_dp'] eq 1">selected="selected"</if> >是</option>
					<option value="0" <if condition="$vo['allow_dp'] eq 0">selected="selected"</if> >否</option>
				</select>
			</td>
	</tr>
	
	<tr>
			<td class="item_title">允许检索</td>
			<td class="item_input">
				<select name="allow_search">
					<option value="1" <if condition="$vo['allow_search'] eq 1">selected="selected"</if> >是</option>
					<option value="0" <if condition="$vo['allow_search'] eq 0">selected="selected"</if> >否</option>
				</select>
			</td>
	</tr>
	<tr>
			<td class="item_title">允许对标签投票</td>
			<td class="item_input">
				<select name="allow_vote">
					<option value="1" <if condition="$vo['allow_vote'] eq 1">selected="selected"</if> >是</option>
					<option value="0" <if condition="$vo['allow_vote'] eq 0">selected="selected"</if> >否</option>
				</select>
			</td>
	</tr>
	<tr>
		<td class="item_title">{%SORT}</td>
		<td class="item_input"><input type="text" class="textbox" name="sort" value="{$vo.sort}" size=5 /></td>
	</tr>
	<tr>
		<td class="item_title">默认预选值</th>
		<td class="item_input">
			<input type="text" class="textbox" name="preset" id="preset" value="{$vo.preset}"  style="width:500px;"/>
			<span class="tip_span">(空格分隔)</span>
		</td>
	</tr>
	
	</tr>
			<tr>
			<td class="item_title">检索标签</td>
			<td class="item_input">
				<input type="text" class="textbox" name="tags" id="tags" style="width:500px;" value="{$vo.tags}" />
				<span class="tip_span">(空格分隔)</span>
			</td>
		</tr>
		
		</tr>
			<tr>
			<td class="item_title">所属分类</td>
			<td class="item_input">
				<foreach name="deal_cates" item="deal_cate">
					<label><input type="checkbox" name="cate_id[]" value="{$deal_cate.id}" <if condition="$deal_cate['checked']">checked="checked"</if> />{$deal_cate.name}</label>
				</foreach>
			</td>
		</tr>
	
	<tr>
		<td class="item_title"></td>
		<td class="item_input">
			<input type="hidden" name="{:conf("VAR_MODULE")}" value="TagGroup" />
			<input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
			<input type="hidden" name="id" value="{$vo.id}" />
			<input type="submit" class="button" value="{%EDIT}" />
			<input type="reset" class="button" value="{%RESET}" />
		</td>
	</tr>
	<tr>
		<td colspan=2 class="bottomTd"></td>
	</tr>
</table>
</form>
</div>
<include file="Public:footer" />